package org.jeecg.modules.demo.officialaccounttoken.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.officialaccounttoken.entity.OfficialAccountToken;

public interface IOfficialAccountTokenService extends IService<OfficialAccountToken> {
    /**
     * 根据AppId和AppSecret查询未过期的Token
     *
     * @param appId
     * @param appSecret
     * @param currentTime
     * @return
     */
    OfficialAccountToken getByAppId(String appId, String appSecret, Long currentTime);

    OfficialAccountToken getToken(String appID, String appSceret);
}
